package org.speed.sentinel;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
       
    	BizService bizService = new BizService();
    	BizServiceCircuitBreaker bizServiceCircuitBreaker = new BizServiceCircuitBreaker(bizService );
    	
		
    	
			Future<String> rs = bizServiceCircuitBreaker.queue();
			try {
				System.out.println(rs.get());
			} catch (Exception e) {
				e.printStackTrace();
			}
			
		
		
    	
    }
}
